package com.whuan.student.repository;


import com.whuan.student.dataObject.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,String> {
    /**
     * create by: whaun
     * create date:  2019/5/19 time:11:05
     * description: 根据用户ID查询用户
     */
    User findByUserId(String userId);

    User findByUserNameAndUserPassword(String name, String password);


}
